from django.shortcuts import get_object_or_404, render_to_response
from django.http import HttpResponseRedirect
from django.core.paginator import Paginator


def checklogin(a):
    try:
        return a.session['id']
    except:
        return 0

    
